package com.example.stymodel.model;

import org.springframework.data.annotation.Id;

import java.io.Serializable;

/**
 * @author sonli
 * 实体类要实现序列化
 */
public class Apple implements Serializable {
    @Id
    private Integer id;
    //价格（用String了先）
    private String price;
    //重量
    private float weight;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }
}
